package com.bwie.controller;

import com.bwie.service.TbDictService;
import com.bwie.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 牛毅
 * @version 1.0
 * @date 2025/7/22
 * @description TODO
 */
@RestController
@RequestMapping("/prod/dict")
public class DictController {
    @Autowired
    TbDictService tbDictService;

    /** 
     * @description: 获取字典表数据 
     * @param: dictType 
     * @return: com.bwie.utils.R 
     * @author 牛毅
     * @date: 2025/7/22 10:36
     */ 
    @PostMapping("/getDictList/{dictType}")
    public R getDictList(@PathVariable(value = "dictType")Integer dictType){
        return tbDictService.getDictList(dictType);
    }
}
